package model.autolight.sequential;

import framework.common.SingleSensor;

/**
 * 人感センサ
 *
 * @author uehara
 *
 */
public class HumanSensor extends SingleSensor {

	@Override
	public Object getAttribute(String attr) {
		if (attr.equals("HUMAN")) {
			Object value = super.getAttribute(attr);
			System.out.println(getDevice().getDeviceName() + " read " + attr + " "
					+ ((Integer) value).intValue());
			return value;
		}
		throw new RuntimeException("no such attribute");
	}

}
